#ifndef __HACK_IR_H__
#define __HACK_IR_H__

#define RX_PIN		5
#define MAX_LINE_SIZE	128
#define DELIM		':'
#define RECEIVE		'R'
#define TRANSMIT	'T'
#define ACK		"ACK"
#define NACK		"NACK"
#define BAUDRATE	9600

#define init_hardware	_init_Teensyduino_internal_

struct supported_ir_types
{
	uint8_t type;
	const char *name;
};

struct ir_code
{
	int type; 		// NEC, SONY, RC5, UNKNOWN, etc
	unsigned int address; 	// This is only used for decoding Panasonic data
	unsigned long value; 	// Decoded value
	int bits; 		// Number of bits in decoded value
	int repeat;		// Set to 1 if a repeated code, else 0
};

#endif
